package demo4;

public class OuterClass2 {
    public int data1 = 1;
    private int data2 = 2;
    public static final int DATA3 = 3;

    // 静态内部类
    static class InnerClass{
        public int data4 = 4;
        private int data5 = 5;
        public static final int DATA6 = 6;

        public void InnerTest(){
            System.out.println("静态内部类的成员方法执行...");
            System.out.println(DATA3);
            System.out.println(data4);
            System.out.println(data5);
            System.out.println(DATA6);
        }
    }

    public void test(){
        System.out.println("实例外部类的成员方法执行...");
    }
}
